<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 用户身份证信息表
 *
 * Date: 19/03/2018
 * @author George
 */
class CreateIdentificationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('identifications', function (Blueprint $table) {
			$table->string('identification', 18)->primary()->comment('身份证');
			$table->string('issuer')->comment('签发单位');
			$table->string('indate')->comment('有效期限');
			$table->string('nation')->comment('名族');
			$table->string('hometown')->comment('户籍地址');
			$table->string('identification_front')->comment('身份证正面');
			$table->string('identification_reverse')->comment('身份证反面');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('identifications');
    }
}
